package com.fyqiang.main;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by Administrator on 2017/8/10.
 */
@Configuration
@ComponentScan(basePackages = {"com.fyqiang.web",
"com.fyqiang.component"})
@EnableAutoConfiguration
//@EnableTransactionManagement
@EnableAsync
public class Application extends WebMvcConfigurerAdapter {
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(Application.class);
        springApplication.run(args);
    }
}
